package com.founder.ivrapi.modular.controller;

import com.founder.ivrapi.modular.service.BaseBlackWhiteListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * base_black_white_list控制类
 */
@RestController
@RequestMapping("/black_white_list")
public class BaseBlackWhiteListController {
	@Autowired
	private BaseBlackWhiteListService baseBlackWhiteListService;

	@RequestMapping("/is_phone_white_list/{called}")
	public Object isCallerIn24Hour(@PathVariable String called) {
		return this.baseBlackWhiteListService.isphoneWhiteList(called);
	}
}
